Optimal. Leaf size=119 \[ -\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{d e^3 (c+d x)}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3 (c+d x)^2}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3}+\frac{b^2 \log (c+d x)}{d e^3}-\frac{b^2 \log \left (1-(c+d x)^2\right )}{2 d e^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.174176, antiderivative size = 119, normalized size of antiderivative = 1., number of steps used = 10, number of rules used = 9, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.391, Rules used = {6107, 12, 5916, 5982, 266, 36, 31, 29, 5948} \[ -\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{d e^3 (c+d x)}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3 (c+d x)^2}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3}+\frac{b^2 \log (c+d x)}{d e^3}-\frac{b^2 \log \left (1-(c+d x)^2\right )}{2 d e^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6107
Rule 12
Rule 5916
Rule 5982
Rule 266
Rule 36
Rule 31
Rule 29
Rule 5948
Rubi steps
\begin{align*} \int \frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{(c e+d e x)^3} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b \tanh ^{-1}(x)\right )^2}{e^3 x^3} \, dx,x,c+d x\right )}{d}\\ &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b \tanh ^{-1}(x)\right )^2}{x^3} \, dx,x,c+d x\right )}{d e^3}\\ &=-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3 (c+d x)^2}+\frac{b \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{x^2 \left (1-x^2\right )} \, dx,x,c+d x\right )}{d e^3}\\ &=-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3 (c+d x)^2}+\frac{b \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{x^2} \, dx,x,c+d x\right )}{d e^3}+\frac{b \operatorname{Subst}\left (\int \frac{a+b \tanh ^{-1}(x)}{1-x^2} \, dx,x,c+d x\right )}{d e^3}\\ &=-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{d e^3 (c+d x)}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3 (c+d x)^2}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{x \left (1-x^2\right )} \, dx,x,c+d x\right )}{d e^3}\\ &=-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{d e^3 (c+d x)}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3 (c+d x)^2}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{(1-x) x} \, dx,x,(c+d x)^2\right )}{2 d e^3}\\ &=-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{d e^3 (c+d x)}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3 (c+d x)^2}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{1-x} \, dx,x,(c+d x)^2\right )}{2 d e^3}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{x} \, dx,x,(c+d x)^2\right )}{2 d e^3}\\ &=-\frac{b \left (a+b \tanh ^{-1}(c+d x)\right )}{d e^3 (c+d x)}+\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3}-\frac{\left (a+b \tanh ^{-1}(c+d x)\right )^2}{2 d e^3 (c+d x)^2}+\frac{b^2 \log (c+d x)}{d e^3}-\frac{b^2 \log \left (1-(c+d x)^2\right )}{2 d e^3}\\ \end{align*}
Mathematica [A] time = 0.178121, size = 136, normalized size = 1.14 \[ \frac{-\frac{a^2}{(c+d x)^2}-\frac{2 a b}{c+d x}-b (a+b) \log (-c-d x+1)+b (a-b) \log (c+d x+1)-\frac{2 b \tanh ^{-1}(c+d x) (a+b (c+d x))}{(c+d x)^2}+\frac{b^2 \left (c^2+2 c d x+d^2 x^2-1\right ) \tanh ^{-1}(c+d x)^2}{(c+d x)^2}+2 b^2 \log (c+d x)}{2 d e^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.064, size = 371, normalized size = 3.1 \begin{align*} -{\frac{{a}^{2}}{2\,d{e}^{3} \left ( dx+c \right ) ^{2}}}-{\frac{{b}^{2} \left ({\it Artanh} \left ( dx+c \right ) \right ) ^{2}}{2\,d{e}^{3} \left ( dx+c \right ) ^{2}}}-{\frac{{b}^{2}{\it Artanh} \left ( dx+c \right ) }{d{e}^{3} \left ( dx+c \right ) }}-{\frac{{b}^{2}{\it Artanh} \left ( dx+c \right ) \ln \left ( dx+c-1 \right ) }{2\,d{e}^{3}}}+{\frac{{b}^{2}{\it Artanh} \left ( dx+c \right ) \ln \left ( dx+c+1 \right ) }{2\,d{e}^{3}}}-{\frac{{b}^{2} \left ( \ln \left ( dx+c-1 \right ) \right ) ^{2}}{8\,d{e}^{3}}}+{\frac{{b}^{2}\ln \left ( dx+c-1 \right ) }{4\,d{e}^{3}}\ln \left ({\frac{1}{2}}+{\frac{dx}{2}}+{\frac{c}{2}} \right ) }-{\frac{{b}^{2}\ln \left ( dx+c-1 \right ) }{2\,d{e}^{3}}}+{\frac{{b}^{2}\ln \left ( dx+c \right ) }{d{e}^{3}}}-{\frac{{b}^{2}\ln \left ( dx+c+1 \right ) }{2\,d{e}^{3}}}-{\frac{{b}^{2}}{4\,d{e}^{3}}\ln \left ( -{\frac{dx}{2}}-{\frac{c}{2}}+{\frac{1}{2}} \right ) \ln \left ({\frac{1}{2}}+{\frac{dx}{2}}+{\frac{c}{2}} \right ) }+{\frac{{b}^{2}\ln \left ( dx+c+1 \right ) }{4\,d{e}^{3}}\ln \left ( -{\frac{dx}{2}}-{\frac{c}{2}}+{\frac{1}{2}} \right ) }-{\frac{{b}^{2} \left ( \ln \left ( dx+c+1 \right ) \right ) ^{2}}{8\,d{e}^{3}}}-{\frac{ab{\it Artanh} \left ( dx+c \right ) }{d{e}^{3} \left ( dx+c \right ) ^{2}}}-{\frac{ab}{d{e}^{3} \left ( dx+c \right ) }}-{\frac{ab\ln \left ( dx+c-1 \right ) }{2\,d{e}^{3}}}+{\frac{ab\ln \left ( dx+c+1 \right ) }{2\,d{e}^{3}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.02258, size = 444, normalized size = 3.73 \begin{align*} -\frac{1}{2} \,{\left (d{\left (\frac{2}{d^{3} e^{3} x + c d^{2} e^{3}} - \frac{\log \left (d x + c + 1\right )}{d^{2} e^{3}} + \frac{\log \left (d x + c - 1\right )}{d^{2} e^{3}}\right )} + \frac{2 \, \operatorname{artanh}\left (d x + c\right )}{d^{3} e^{3} x^{2} + 2 \, c d^{2} e^{3} x + c^{2} d e^{3}}\right )} a b - \frac{1}{8} \,{\left (d^{2}{\left (\frac{\log \left (d x + c + 1\right )^{2} - 2 \, \log \left (d x + c + 1\right ) \log \left (d x + c - 1\right ) + \log \left (d x + c - 1\right )^{2} + 4 \, \log \left (d x + c - 1\right )}{d^{3} e^{3}} + \frac{4 \, \log \left (d x + c + 1\right )}{d^{3} e^{3}} - \frac{8 \, \log \left (d x + c\right )}{d^{3} e^{3}}\right )} + 4 \, d{\left (\frac{2}{d^{3} e^{3} x + c d^{2} e^{3}} - \frac{\log \left (d x + c + 1\right )}{d^{2} e^{3}} + \frac{\log \left (d x + c - 1\right )}{d^{2} e^{3}}\right )} \operatorname{artanh}\left (d x + c\right )\right )} b^{2} - \frac{b^{2} \operatorname{artanh}\left (d x + c\right )^{2}}{2 \,{\left (d^{3} e^{3} x^{2} + 2 \, c d^{2} e^{3} x + c^{2} d e^{3}\right )}} - \frac{a^{2}}{2 \,{\left (d^{3} e^{3} x^{2} + 2 \, c d^{2} e^{3} x + c^{2} d e^{3}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.23881, size = 598, normalized size = 5.03 \begin{align*} -\frac{8 \, a b d x + 8 \, a b c -{\left (b^{2} d^{2} x^{2} + 2 \, b^{2} c d x + b^{2} c^{2} - b^{2}\right )} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )^{2} + 4 \, a^{2} - 4 \,{\left ({\left (a b - b^{2}\right )} d^{2} x^{2} + 2 \,{\left (a b - b^{2}\right )} c d x +{\left (a b - b^{2}\right )} c^{2}\right )} \log \left (d x + c + 1\right ) - 8 \,{\left (b^{2} d^{2} x^{2} + 2 \, b^{2} c d x + b^{2} c^{2}\right )} \log \left (d x + c\right ) + 4 \,{\left ({\left (a b + b^{2}\right )} d^{2} x^{2} + 2 \,{\left (a b + b^{2}\right )} c d x +{\left (a b + b^{2}\right )} c^{2}\right )} \log \left (d x + c - 1\right ) + 4 \,{\left (b^{2} d x + b^{2} c + a b\right )} \log \left (-\frac{d x + c + 1}{d x + c - 1}\right )}{8 \,{\left (d^{3} e^{3} x^{2} + 2 \, c d^{2} e^{3} x + c^{2} d e^{3}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \operatorname{artanh}\left (d x + c\right ) + a\right )}^{2}}{{\left (d e x + c e\right )}^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]